import React from 'react'
import * as Icons from '@ant-design/icons';
const Iconfont = (props) => {
    const { icon } = props
    //React提供的createElement方法可以将字符串转成组件
    return React.createElement(Icons[icon])
}
export default Iconfont
